package com.xz.courseschedule.ai;

import com.xz.courseschedule.common.dto.TimeTableClassDto;
import com.xz.courseschedule.mapper.TimetableMapper;
import com.xz.courseschedule.mapper.TimetableRechearsalMapper;
import com.xz.courseschedule.service.TimetableRehearsalService;
import com.xz.courseschedule.service.TimetableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: zys
 * @CreateTime: 2025-05-29
 */


@Service
public class RagService {

    @Autowired
    private TimetableMapper timetableMapper;

    @Autowired
    private TimetableService timetableService;


    @Autowired
    private TimetableRechearsalMapper timetableRechearsalMapper;

    @Autowired
    private TimetableRehearsalService timetableRehearsalService;

    public List<TimeTableClassDto> searchRelevantInfo(String query) {
        List<TimeTableClassDto> data = (List<TimeTableClassDto>) timetableService.getList().getData();
        System.out.println(data);
        return data;
    }
}